<template>
  <el-collapse class="elCollapse" v-model="activeName" accordion>
    <el-collapse-item title="还车信息" name="1">
      <el-form ref="ruleForm" :inline="false" class="elForm">
        <div style="padding: 20px">

          <el-row :gutter="24">
            <el-col :span="8">
              <el-form-item label="还车类别:">
                <span> {{  selectDictLabel(dict.type.return_car_type,ruleForm.returnCategory) }}</span>
              </el-form-item>
            </el-col>
            <el-col :span="8">
              <el-form-item label="还车时间:">
                <span>{{ ruleForm.returnCarDate }}</span>
              </el-form-item>
            </el-col>
            <el-col :span="8">
              <el-form-item label="还车里程数:">
                <span>{{ ruleForm.returnMileage }}</span>
              </el-form-item>
            </el-col>
          </el-row>

          <el-row :gutter="24">
            <el-col :span="8">
              <el-form-item label="还车油量:">
                <span>{{ ruleForm.returnFuel }}</span>
              </el-form-item>
            </el-col>
            <el-col :span="8">
              <el-form-item label="行驶里程数:">
                <span>{{ ruleForm.drivingMileage }}</span>
              </el-form-item>
            </el-col>
            <el-col :span="8">
              <el-form-item label="油量差值:">
                <span>{{ ruleForm.oilQuantityDifference }}</span>
              </el-form-item>
            </el-col>
          </el-row>

          <el-row :gutter="24">
            <el-col :span="24">
              <el-form-item label="还车原因:">
                <span>{{ruleForm.reasonForReturningTheCar}}</span>
              </el-form-item>
            </el-col>
            <el-col :span="24">
              <el-form-item label="还车附件:">
                <image-common v-model="ruleForm.returnAccessories" :limit="20" :disabled="true" :upType="2"/>
              </el-form-item>
            </el-col>
            <el-col :span="8">
              <el-form-item label="验车方式:">
                <span>{{ selectDictLabel(dict.type.vehicle_inspection_method,ruleForm.vehicleInspectionMethod)}}</span>
              </el-form-item>
            </el-col>
          </el-row>
        </div>
      </el-form>
    </el-collapse-item>
  </el-collapse>
</template>

<script>
export default {
  name: 'returnCarMessage',//还车信息
  dicts:['return_car_type','vehicle_inspection_method'],
  components: {},

  props: {
    value: {
      type: Object,
      default: () => {
        return {};
      },
    },
  },

  computed: {
    ruleForm: {
      get() {
        let that = this
        const proxy = new Proxy(that.value, {
          get(target, key, value) {
            return Reflect.get(target, key)
          }
        })
        return proxy
      }
    },
  },
  watch: {},
  data() {
    return {
      activeName:['1']
    };
  },
  created() {
  },
  mounted() {
  },
  methods: {},
};
</script>

<style lang="scss" scoped>
@import "@/styles/cwgd/formScss.scss";
::v-deep span:empty::before{
  content: '-';
}
</style>


